package com.dcyao.musicserve.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.dcyao.musicserve.common.R;
import com.dcyao.musicserve.domain.dto.ConsumerDTO;

import java.util.List;

public interface ConsumerService {
    R verityPasswd(ConsumerDTO adminRequest);
    R addUser(ConsumerDTO adminRequest);
    R findPage(Integer pageNum, Integer pageSize, String username);
    R updateUserMsg(ConsumerDTO updateRequest);
    R updatePassword(ConsumerDTO updatePasswordRequest);
    boolean existUser(String username);
    boolean verityPasswd(String username, String password);
    R deleteUser(Integer id);
    R deleteBathIds(List<Integer> id);
    R allUser();
    R userOfId(Integer id);
    long consumerCount();
    Page<ConsumerDTO> needConsumerType(Page<ConsumerDTO> page);
    boolean isExist(ConsumerDTO adminRequest);

}
